package com.hsc.yalebao.zhuanpan;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.DrawableRequestBuilder;
import com.bumptech.glide.DrawableTypeRequest;
import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestManager;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.hsc.yalebao.http.AppConstants;
import com.hsc.yalebao.model.GetAllGiftsBaseBean;
import java.util.ArrayList;

public class PrizeListAdapter extends BaseAdapter
{
  private Context mContext;
  private ArrayList<GetAllGiftsBaseBean> mDataList;

  public PrizeListAdapter(Context paramContext, ArrayList<GetAllGiftsBaseBean> paramArrayList)
  {
    this.mContext = paramContext;
    this.mDataList = paramArrayList;
  }

  public int getCount()
  {
    return this.mDataList.size();
  }

  public Object getItem(int paramInt)
  {
    return this.mDataList.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    ViewHolder localViewHolder;
    if (paramView == null)
    {
      paramView = View.inflate(this.mContext, 2130903212, null);
      localViewHolder = new ViewHolder(null);
      localViewHolder.mImageView = ((ImageView)paramView.findViewById(2131100020));
      localViewHolder.mNameTv = ((TextView)paramView.findViewById(2131099922));
      localViewHolder.mMoneyTv = ((TextView)paramView.findViewById(2131100314));
      localViewHolder.mTimeTv = ((TextView)paramView.findViewById(2131100326));
      paramView.setTag(localViewHolder);
    }
    GetAllGiftsBaseBean localGetAllGiftsBaseBean;
    while (true)
    {
      localGetAllGiftsBaseBean = (GetAllGiftsBaseBean)this.mDataList.get(paramInt);
      if (localGetAllGiftsBaseBean != null)
        break;
      return paramView;
      localViewHolder = (ViewHolder)paramView.getTag();
    }
    String str1 = localGetAllGiftsBaseBean.getMoney();
    String str2 = localGetAllGiftsBaseBean.getPhoto();
    String str3 = localGetAllGiftsBaseBean.getTime();
    String str4 = localGetAllGiftsBaseBean.getUser_name();
    String str5 = AppConstants.BASE_URL_IMG + str2;
    Glide.with(this.mContext).load(str5).diskCacheStrategy(DiskCacheStrategy.ALL).placeholder(2130838020).centerCrop().crossFade().into(localViewHolder.mImageView);
    localViewHolder.mMoneyTv.setText(str1 + "元宝");
    localViewHolder.mNameTv.setText(str4);
    localViewHolder.mTimeTv.setText(str3);
    return paramView;
  }

  private class ViewHolder
  {
    private ImageView mImageView;
    private TextView mMoneyTv;
    private TextView mNameTv;
    private TextView mTimeTv;

    private ViewHolder()
    {
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.zhuanpan.PrizeListAdapter
 * JD-Core Version:    0.6.2
 */